<template>
  <div class="paramterPage">
    <div class="crumbs">
      <el-breadcrumb separator="/">
        <el-breadcrumb-item>
          <i class="el-icon-bank-card"> sp管理</i>
        </el-breadcrumb-item>
      </el-breadcrumb>
    </div>
    <div class="handle-box">
      <div class="type">类型 :</div>
      <template>
        <el-select v-model="value" placeholder="请选择">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option>
        </el-select>
        <el-button type="primary" style="margin-left:10px">搜索</el-button>
        <el-button type="success">重置</el-button>
      </template>
    </div>
        <el-table :data="list" border>
      <el-table-column
        prop="id"
        label="序号"
        width="60"
        align="center"
      ></el-table-column>
      <el-table-column prop="name" label="类型" width="80" align="center"></el-table-column>
      <el-table-column label="标题" align="center">
        <template slot-scope="scope">￥{{ scope.row.money }}</template>
      </el-table-column>
      <el-table-column prop="address" label="IP地址" align="center"></el-table-column>
      <el-table-column prop="methods" label="请求方式" align="center"></el-table-column>
      <el-table-column prop="date" label="请求时间" align="center"></el-table-column>
      <el-table-column prop="date" label="创建时间" align="center"></el-table-column>
      <el-table-column label="操作" width="180" align="center">
        <template slot-scope="scope">
          <el-button
            type="text"
            icon="el-icon-edit"
            class="btn-sz"
            @click="handleEdit(scope.$index, scope.row)"
            >查看</el-button
          >
          <el-button
            type="text"
            icon="el-icon-delete"
            class="red btn-sz"
            @click="handleDelete(scope.$index, scope.row)"
            >删除</el-button
          >
        </template>
      </el-table-column>
    </el-table>
    <div class="pagination">
      <!-- <el-pagination
          background
          layout="total, prev, pager, next"
          :current-page="query.pageIndex"
          :page-size="query.pageSize"
          :total="pageTotal"
          @current-change="handlePageChange"
      ></el-pagination> -->
      <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="currentPage4"
      :page-sizes="[10, 20, 300, 400]"
      :page-size="100"
      layout="total, sizes, prev, pager, next, jumper"
      :total="pageTotal">
    </el-pagination>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
    // 分页数据
      query: {
          address: '',
          name: '',
          pageIndex: 1,
          pageSize: 10
      },
      pageTotal: 4,
      // 查询数据
      options: [
        {
          value: "0",
          label: "异常",
        },
        {
          value: "1",
          label: "正常",
        },
      ],
      value: "",
      list: [
        {
          id: 1,
          name: "正常",
          money: 123,
          address: "广东省东莞市长安镇",
          methods: "post",
          state: "成功",
          date: "2019-11-1",
          thumb: "https://lin-xin.gitee.io/images/post/wms.png",
        },
        {
          id: 2,
          name: "正常",
          money: 456,
          address: "广东省广州市白云区",
          methods: "post",
          state: "成功",
          date: "2019-10-11",
          thumb: "https://lin-xin.gitee.io/images/post/node3.png",
        },
        {
          id: 3,
          name: "异常",
          money: 789,
          address: "湖南省长沙市",
          methods: "post",
          state: "失败",
          date: "2019-11-11",
          thumb: "https://lin-xin.gitee.io/images/post/parcel.png",
        },
        {
          id: 4,
          name: "异常",
          money: 1011,
          address: "福建省厦门市鼓浪屿",
          methods: "post",
          state: "成功",
          date: "2019-10-20",
          thumb: "https://lin-xin.gitee.io/images/post/notice.png",
        },
      ],
    };
  },
  created() {},
  methods: {
    handleSizeChange() {

    },
    handleCurrentChange() {

    }
  },
};
</script>
<style lang="less" scoped>
.paramterPage {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  padding-top: 15px;
  padding-left: 20px;
  background-color: #fff;

  .handle-box {
    display: flex;
    align-items: center;
    margin: 18px 0;
    .type {
      font-size: 14px;
      margin-right: 20px;
    }
  }
   .pagination {
   margin-top: 10px;
   text-align: right;
 }
}
</style>